package org.tity.test.json;

import org.dom4j.DocumentException;
import org.tity.commons.json.JSONUtil;
import org.tity.commons.network.Ajax;

import com.alibaba.fastjson.JSONObject;

public class Json2XmlText {
	
	public static void main(String[] args) throws DocumentException {
		
		String wsdl=Ajax.get("http://www.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl");
//		System.out.println(wsdl);
		JSONObject json=JSONUtil.toJSONObject(wsdl);
		String str=JSONUtil.format(json.toJSONString());
		System.out.println(str);
	}
	

}
